vcUnit

Unit represents a single unit of measurement complete with a name, suffix and properties for describing linear mapping between canonical and unit values.

See in: Overview

Module: vcCore

Parent: vcObject

Children -

Referenced by: vcMatrixProperty.Unit, vcMatrixStepProperty.Unit, vcRealExpressionProperty.Unit, vcRealLimitProperty.Unit, ... (see more)
vcMatrixProperty.Unit
vcMatrixStepProperty.Unit
vcRealExpressionProperty.Unit
vcRealLimitProperty.Unit
vcRealProperty.Unit
vcRealStepProperty.Unit
vcUnitGroup.Units
vcUnitGroup.createUnit()
vcUnitGroup.findUnit()
vcUnitGroup.getUnitWithMagnitude()
vcVectorProperty.Unit
vcVectorStepProperty.Unit

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
FactorRealRWGets or sets if unit is built-in, gets conversion factor; otherwise gets or sets conversion factor. That is, the size of unit in canonical units which must be larger than zero.
IsBuiltInBooleanRGets if unit is built-in.
NameStringRWGets or sets unit name.
See more
Exceptions:
ValueError: When given name is empty or not unique within the unit group this unit belongs to.
OffsetRealRWGets or sets if unit is built-in, gets zero-point offset; otherwise gets or sets the canonical value at which the unit value is zero.
SuffixStringRWGets or sets unit suffix.
See more
Exceptions:
ValueError: When given suffix is empty or not unique within the unit group this unit belongs to.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
deleteNoneNoneDeletes the unit.

Exceptions:
RuntimeError: When deleting from a built-in unit group.